package lab02.Test11;

/**
 * Created by tanfei on 2017/10/25.
 */
public class Square extends Rectangle {
    //属性：边长
    double side;
    //方法：求对角线
    double diagonal(){return (Math.sqrt(side*side+side*side));}
    @Override
    double premiter() {
        return super.premiter();
    }
}
